package com.mymoney.ws.data;

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;

public class StoreBean implements Serializable {

	private static final long serialVersionUID = 5176088570592737274L;

	@SerializedName("id")
	private Integer id;

	@SerializedName("name")
	private String name = null;

	@SerializedName("code")
	private long code;
	
	@SerializedName("location")
	private LocationBean location = null;
	

	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public long getCode() {
		return code;
	}


	public void setCode(long code) {
		this.code = code;
	}

	
	public LocationBean getLocation() {
		return location;
	}


	public void setLocation(LocationBean location) {
		this.location = location;
	}
	
	
	@Override
	public boolean equals(Object obj) {

		if (obj == null) {
			return false;
		}

		if(this == obj) {
			return true;
		}

		if (!(obj instanceof StoreBean)) {
			return false;
		}

		StoreBean other = (StoreBean) obj;
		if ((id == null) || (other.getId() == null)) {
			return false;
		}

		return (id.equals(other.getId()));
	}
}
